#include <stdio.h>
int main(void)
{
    float f;
    scanf("%f",&f);
    printf("%.3f",5*(f-32)/9);
}
